using System.Net.Mail;

namespace Vin.Extension.Email.Options;

public class VinEmailSendOption
{
    public class EmailSmsReceiver
    {
        public string Email { get; set; }

        public string? Name { get; set; }

        public EmailSmsReceiver(string email, string? name = null)
        {
            Email = email;
            Name = name;
        }
    }

    /// <summary>
    /// 发送者
    /// </summary>
    public string? FromName { get; set; }

    /// <summary>
    /// 接收者
    /// </summary>
    public List<EmailSmsReceiver> Receivers { get; set; } = new();

    /// <summary>
    /// 是否支持html
    /// </summary>
    public bool IsHtml { get; set; } = true;

    /// <summary>
    /// 邮件优先级
    /// </summary>
    public MailPriority Priority { get; set; } = MailPriority.High;

    /// <summary>
    /// 抄送
    /// </summary>
    public List<string> CcList { get; set; } = new();

    /// <summary>
    /// 附件
    /// </summary>
    public List<Attachment> Attachments { get; set; } = new();
}